<div class="form">
<?php $form = $this
	->beginWidget('CActiveForm',
		array(
			'id' => 'account-token-form',
			'enableAjaxValidation' => false,
		));
?>

<!-- 	<p class="note">Fields with <span class="required">*</span> are required.</p> -->

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model, 'tokenDate'); ?>
		<?php $this
			->widget('zii.widgets.jui.CJuiDatePicker',
				array(
					'model' => $model,
					'attribute' => 'tokenDate',
				));
		?>
		<?php echo $form->error($model, 'tokenDate'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'note'); ?>
		<?php echo $form->textField($model,'note',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'note'); ?>
	</div>
	
<?php //if ($model->getIsNewRecord()) { ?>
	<div class="row">
		<?php echo $form->labelEx($model, 'number'); ?>
		<?php echo $form->textField($model, 'number'); ?>
		<?php echo $form->error($model, 'number'); ?>
		<span class="hint">留空为自动编号</span>
	</div>
<?php //} 
?>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '新建' : '保存'); ?>
	</div>
<?php $this->endWidget(); ?>

</div><!-- form -->
